//fnc_compare_weaponArray = {
/* function for searching a nested array [[key, val], [key, val], [key, val]]
	["key", 1, [someArray] call fnc_search_array; 
*/
	_result = -1;
	_current = 0;
	{
		_name = _x select (_this select 1);
		if (_name == (_this select 0)) then {
			_result = _current;
		};
		_current = _current + 1;
	} forEach (_this select 2);
	_result;
//};